{extend name="base:base" /}
{block name="body"}


<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card layui-form">

                <form method="get">
                    <div class="layui-card-body">
                        <a class="layui-btn layui-btn-normal" href="{:url('add', ['cid' => $Think.get.category])}"><i class="layui-icon layui-icon-add-1"></i>添加</a>


                        <input type="hidden" name="category" value="<?php echo input('get.category', ''); ?>" />

                        <div class="layui-input-inline">
                            <input type="text" name="keyword" placeholder="搜索关键字" autocomplete="off" value="{$Think.get.keyword}"  class="layui-input" />
                        </div>
                        <div class="layui-input-inline">
                            <input type="text" name="points" placeholder="积分大于" autocomplete="off" value="{$Think.get.points}"  class="layui-input" />
                        </div>
                        <button class="layui-btn layui-btn-normal" lay-submit><i class="layui-icon"></i></button>


                    </div>
                </form>

                <div class="layui-card-body">
                    <table lay-even="" class="layui-table">
                        {$tpl_list}      
                    </table>
                </div>
                <div class="layui-card-body">

                    <div class="page pull-right">
                        {$page}
                    </div>
                    
                    <div class="layui-input-inline">
                        <select name="set_category" lay-filter="set_field" href="<?php echo url('set_category'); ?>">
                            <option value="">分类转移</option>
                            <?php echo html_select($category_select); ?>
                        </select>
                    </div>
                    <div class="layui-input-inline">
                        <select name="set_recommend" lay-filter="set_field" href="<?php echo url('set_recommend'); ?>">
                            <option value="">推荐操作</option>
                            <option value="1">推荐</option>
                            <option value="0">取消推荐</option>                    
                        </select>
                    </div>
                </div>


            </div>
        </div>
    </div>
</div>


{/block}